/**
 * 图表报表API
 *
 * @版权所有 rem.studio
 */
import { stringify } from 'qs';
import request from '@/utils/request';

/** 图表API开始 */

export async function queryAnalysisChartData(params) {
  if (params == undefined) {
    params = 'year';
  }
  return request(`/api/chart/chart/queryAnalysisChartData?period=${params}`, {
    method: 'GET'
  });
}

export async function queryMonitorChartData() {
  return request('/api/chart/chart/queryMonitorChartData', {
    method: 'GET'
  });
}

export async function queryProduct(params = {}) {
  return request(`/api/chart/chart/queryProduct?${stringify(params)}`, {
    method: 'GET'
  });
}

/** 图表API结束 */
